package zuoye6;

public class Text {
    public static void main(String[] args) {
        Cat cat = new Cat();
        Dog dog = new Dog();

        cat.setColor("白色");
        cat.setName("小白");

        dog.setCry("汪汪汪");
        dog.setName("小黑");
        System.out.println("猫名：" + cat.getName());
        System.out.println("猫的毛色: " + cat.getColor());

        System.out.println("狗名: " + dog.getName());
        System.out.println("狗叫: " + dog.getCry());
    }
}
